# 动态修改类方法

class Student: 
    def setNmae(self,name):
        self.name=name

def work(self):
    print("hard work")

f1=Student()
f1.work = work.__get__(f1)
f1.work()